package com.visualization.server.controller;

import com.visualization.server.entities.OrdersAnalysis;
import com.visualization.server.service.OrdersAnalysisService;
import com.visualization.server.utils.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/ordersAnalysis")
public class OrdersAnalysisController {

    @Autowired
    OrdersAnalysisService ordersAnalysisService;


    //查询所有用户
    @GetMapping("/getList")
    public ResultData<List<OrdersAnalysis>> getUserList(){
       
        List<OrdersAnalysis> ordersAnalysisList = ordersAnalysisService.getOrderList();
        return ResultData.success(ordersAnalysisList);
    }

}
